package com.example.interfaces.dto;

import com.example.infrastructure.excel.ExcelExportable;
import com.example.infrastructure.excel.ExcelImportable;
import cn.idev.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * 科室表 DTO
 *
 * @author wangal
 * @since 2025-07-25
 */
@Data
@Schema(name = "DepartmentsDTO", description = "科室表DTO")
public class DepartmentsDTO implements ExcelExportable, ExcelImportable {

    @Schema(description = "科室名称")
    @ExcelProperty("科室名称")
    @NotBlank(message = "科室名称不能为空")
    private String deptName;
    
    @Schema(description = "科室编码")
    @ExcelProperty("科室编码")
    @NotBlank(message = "科室编码不能为空")
    private String deptCode;
    
    @Schema(description = "科室描述")
    @ExcelProperty("科室描述")
    @NotBlank(message = "科室描述不能为空")
    private String deptDesc;
    
    @Schema(description = "上级科室ID")
    @ExcelProperty("上级科室ID")
    @NotNull(message = "上级科室ID不能为空")
    private Long parentId;
    
    @Schema(description = "排序")
    @ExcelProperty("排序")
    @NotNull(message = "排序不能为空")
    private Integer sortOrder;
    
    @Schema(description = "科室图标")
    @ExcelProperty("科室图标")
    @NotBlank(message = "科室图标不能为空")
    private String icon;
    
    @Schema(description = "状态：1正常，0禁用")
    @ExcelProperty("状态：1正常，0禁用")
    private Byte status;
    
    @Schema(description = "租户编号")
    @ExcelProperty("租户编号")
    @NotNull(message = "租户编号不能为空")
    private Long tenantId;
    
}
